// 带token的路径
// let baseURL = uni.getStorageSync("serveURL");
// console.log("拿服务器地址", baseURL)
// const baseURL = 'http://dev.woniulab.com:7684/';
const baseURL = 'http://dev.woniulab.com:8012/';


// 不带token的路径
const noTokenURL = 'http://dev.woniulab.com:8022/';

// ==================带token的路径接口==================
export const getCodeURL = baseURL + 'gen/custom/note';
export const registerURL = baseURL + 'gen/custom/register';
export const addAddressURL = baseURL + 'gen/address'; //添加地址
export const loginbyTeleURL = baseURL + 'gen/custom/phoneNum';
export const loginbyPswURL = baseURL + 'gen/custom/login';
export const getUserInfoURL = baseURL + 'gen/custom';
export const setDefaultURL = baseURL + 'gen/address/updateDefaultAddress';
export const scURL = baseURL + 'goodscollection';
export const ljzfURL = baseURL + 'gen/shoppingcar';
export const addChargeOrderURL = baseURL + "gen/portalChargeOrder/addChargeOrder";
export const updateChargeOrderURL = baseURL + "gen/portalChargeOrder/updateChargeOrder"; //商品购买和订单支付
export const getShopCartURL = baseURL + "gen/shoppingcar"; //获取用户购物画册
export const nowBuyURL = baseURL + "gen/goodsorder/buyFromCar"; //购物车支付
export const setCartsURL = baseURL + "gen/shoppingcar"; //设置购物车商品数量
export const emptyCarts = baseURL + "gen/shoppingcar/clear" //清空购物车
export const goodsOrderURL = baseURL + "gen/goodsorder/findAllGoodsorderByUid" //查看商品订单
export const nowBuyGoodsURL = baseURL + "gen/goodsorder/addGoodsOrder" //点击立即购买
export const nowPayURL = baseURL + "gen/goodsorder/editOrder" //点击立即支付
export const buyURL = baseURL + 'gen/serviceorder';
export const payURL = baseURL + 'gen/serviceorder/finshPay';



// ==================带token的路径接口==================
export const provinceURL = noTokenURL + 'portal/area/getAllProvince'; //省份
export const cityURL = noTokenURL + 'portal/area/getAllCityByPid'; //市
export const zoneURL = noTokenURL + 'portal/area/getAllZoneByCid'; //区
export const getbeautyURL = noTokenURL + 'shop/getByNavId/'; //汽车美容按类型店铺数据接口
export const getbeautyListURL = noTokenURL + 'shop/getByTypeId/';
export const evaluationURL = noTokenURL + 'judgement/';
export const orderURL = noTokenURL + 'judgement/';
export const goodListURL = noTokenURL + 'portal/Servicetype/findAllByUpkeep';
export const storeHomeURL = noTokenURL + 'shop/';
export const getShopURL = noTokenURL + 'portal/Goodstype'; // lin，首页底部推荐商品
export const homegoodsURL = noTokenURL + 'portal/Goods/findGoodjudgementRecommendGoods';
export const homeSeckillURL = noTokenURL + 'seckills/findAll?startTime=2021-05-01T14:00'; // lin 首页秒杀
export const finsURL = noTokenURL + '/portal/Goods/findByNameAndPrice' //获取商品数据接口
export const findByIdURL = noTokenURL + 'portal/Goods/findById' //点击商品进入商品详情的接口
export const getChargeStationURL = noTokenURL + "shop/";
export const getChargeStationDeatailURL = noTokenURL + "shop/findById";
export const getchargejudementURL = noTokenURL + 'chargejudement/';
export const getnavigationURL = noTokenURL + "navigation/";
